package com.zhixiang.xaec.entity.safebase.safecultruetrain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.cfg.Comment;

import com.googlecode.jsonplugin.annotations.JSON;
import com.zhixiang.xaec.entity.BaseEntity;

@Entity
@Table(name = "safebase_Credentials")
@Comment("资格证书")
public class Credentials  extends BaseEntity{
	
	@Comment("资格证书编号")
	@Column(length=200)
	private String credentialsNum;
	
	@Comment("重要岗位人员ID")
	@Column(length=200)
	private Long credentialsId;
	@Comment("资格证书类型")
	@Column(length=200)
	private String credentialsVariety;
	
	@Comment("持证日期")
	@Column(length=200)
	private Date holdDate;
	
	@Comment("资格证书有效期")
	@Column(length=200)
	private Date  validities;

	public String getCredentialsNum() {
		return credentialsNum;
	}

	public void setCredentialsNum(String credentialsNum) {
		this.credentialsNum = credentialsNum;
	}

	public String getCredentialsVariety() {
		return credentialsVariety;
	}

	public void setCredentialsVariety(String credentialsVariety) {
		this.credentialsVariety = credentialsVariety;
	}
    @JSON(format="YYYY-MM-dd")
	public Date getHoldDate() {
		return holdDate;
	}

	public void setHoldDate(Date holdDate) {
		this.holdDate = holdDate;
	}
	@JSON(format="YYYY-MM-dd")
	public Date getValidities() {
		return validities;
	}

	public void setValidities(Date validities) {
		this.validities = validities;
	}

	public Long getCredentialsId() {
		return credentialsId;
	}

	public void setCredentialsId(Long credentialsId) {
		this.credentialsId = credentialsId;
	}
	
	
}
